#ifndef CONSTANTS_H
#define CONSTANTS_H
#include <QString>

const int LISTENING_PORT_BEGIN = 6881;
const int LISTENING_PORT_END = 6889;
const char PROTOCOL_ID[] = "BitTorrent protocol";  //this may change with new protocol version
const char PROTOCOL_ID_LENGTH = 19; //length of PROTOCOL_ID
const int KEEP_ALIVE_SENDING_INTERVAL_MSEC = 40000; //send keep-alive each 40 seconds
const int KEEP_ALIVE_TIMEOUT_MSEC = 120000; //close connection if keep alive (or any other data)
                                            //has not been received for 2 minutes
const int BLOCK_SIZE_BYTES = 2 << 13; //2^14 = 16384 = 16kB, recommended block size
const int HANDSHAKE_SIZE = 68;

#endif // CONSTANTS_H
